package com.wzh.dao;

import com.wzh.pojo.Po.UserZp;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface UserZpDao {
	@Select("select * from USER where phone=#{phone}")
	UserZp findPhone(UserZp user);
	@Select("select * from USER where phone=#{phone} and password=#{password}")
	UserZp login(UserZp user);
	@Insert("insert into USER (phone,password) value (#{phone},#{password})")
	int register(UserZp user);
}
